package com.recharge.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.recharge.common.result.ResultDO;
import com.recharge.core.entity.AccountEntity;
import com.recharge.domain.vo.AccountDO;

/**
 * <p>
 *  系统帐户服务类
 * </p>
 *
 * @author reagan
 * @since 2020-08-19
 */
public interface AccountService extends IService<AccountEntity> {

    /**
     * 添加系统帐户（系统自动生成）
     * @param domain
     * @return ResultDO
     */
    public ResultDO add(AccountDO domain);

    /**
     * 编辑系统帐户
     * @param domain
     * @return ResultDO
     */
    public ResultDO edit(AccountDO domain);

    /**
     * 返回系统帐户详情
     * @param id
     * @return ResultDO
     */
    public ResultDO get(String id);

    /**
     * 删除系统帐户
     * @param id
     * @param modifier
     * @return
     */
    public ResultDO remove(String id, String modifier);

    /**
     * 查找系统帐户
     * @param domain
     * @return ResultDO
     */
    public ResultDO find(AccountDO domain);
}
